<template>
  <div>

    <a-input placeholder="请输入内容" v-model="testData"/>
    <div>
      {{ testData }}
    </div>

    <div>
      <a-input placeholder="请输入内容" defaultValue="testData2" @change="handleChange"/>
    </div>
    <div>
      {{ testData2 }}
    </div>
  </div>
</template>

<script>
  export default {
    name: 'Input',
    data(){
      return {
        testData:"",
        testData2:"我是defaultvalue"
      }
    },
    methods:{
      handleChange(e){
        this.testData2 = e.target.value
      }
    }
  }
</script>

<style scoped>

</style>